﻿#!/usr/bin/env python
# coding=utf-8

from web.web_controls import *

class GroupList(WebControl):
  def __init__(self, group_list):
    self.group_list = group_list
  
  def to_html(self):
    html = ""
    for group in self.group_list:
      html += "<a href=\"/group/%s\">%s</a> &nbsp | &nbsp" % (group.key().id(), group.group_name)
    return html
